package com.gcxy.dto.student;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @ClassName AddWeeklyDTO
 * @Author qinlun
 * @Date 2024/7/26 16:07
 * @Describe
 **/
@Data
@Accessors(chain = true)
@ApiModel(value = "ScheduledTasksDTO", description = "定时任务传入参数")
public class ScheduledTasksDTO {

    @ApiModelProperty(value = "组织机构id", required = true)
    @NotNull(message = "组织机构id不能为空")
    private Integer agencyId;

    @ApiModelProperty(value = "开始|结束生成周报，0：结束周报；1：生成周报", required = true)
    @NotNull(message = "是否生成周报不能为空")
    @Min(value = 0, message = "是否生成周报只能为0或1")
    @Max(value = 1, message = "是否生成周报只能为0或1")
    private Integer statues;

}
